
:root {
  --background-color: #ffffff;
  --background-color-2: #c5c5c5;
  --text-color: #000000;
  --hover-color: rgb(123, 123, 236);
  --cta: rgb(255, 157, 0);
}
@media(prefers-color-scheme: dark){
  :root {
    --background-color: #000000;
    --background-color-2: rgb(40, 40, 40);
    --text-color: #ffffff;
  }
}
body{
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  
  overflow-x: hidden;

  font-family: "Outfit", sans-serif !important;
}

html{
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  font-size: 14px;
}

* {
  box-sizing: border-box;
}


.page-top {
  width: 80vw !important;
  margin: 0 auto;

  display: flex;
  background-color: var(--background-color);
  position: sticky;
  z-index: 1;
  transition: height 1s ease; /* Smooth transition for background color */
  height: fit-content;

  margin-bottom: 5rem;
}

.page-top.stuck {
  top: 0;
  height: 30px; /* Height when stuck */
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;

  align-items: center;
  transition: max-height 0.5s ease, opacity 0s ease, transform 0.5s ease; /* Added transform transition */
  max-height: 100px; /* Set an initial max-height */
  opacity: 1; /* Fully visible initially */
}

.logo-container.stuck {
  max-height: 0; /* Collapsed height */
  opacity: 0; /* Fade out effect */
  transform: translateY(-20px); /* Optional: add a little upward movement */
  pointer-events: none; /* Disable interactions */
}

.link-home-page {
  display: flex;
  gap: 2rem;

  cursor: pointer;

  width: fit-content;
  height: fit-content;

  text-decoration: none;
  color: var(--text-color);
}

.top-page-logo {
  flex: 1;
  margin-left: 15px;
  max-height: 60px; /* Limits the height */
  max-width: fit-content;  /* Ensures it doesn’t exceed the container’s width */
  object-fit: contain; 
  transition: width 0.5s ease, height 0.5s ease;
  padding-left: 2rem;
}

.top-page-logo.stuck {
  width: 0;
  height: 0;
}

.top-page-slogan {
  flex: 2;
  font-size: 14px;
  margin-top: 25px;
  
}
.top-page-slogan.stuck {
  width: 0;
  height: 0;
  transition: width 0.5s ease, height 0.5s ease;
}

.navbar-container {
  flex: 1.1;

  display: flex;
  justify-content: space-around;
  align-items: center;


  transition: flex 0.5s ease, opacity 0.5s ease, max-width 0.5s ease; /* Smooth transition for flex and opacity */
}

.navbar-container.stuck {
  flex: 1 0 100%; /* Occupies full width of page-top */
  opacity: 1; /* Ensure it is visible when stuck */
  gap: 0px;
}

.navbar-element {
  flex: 1;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  transition: max-width 0.5s ease;

  height: fit-content;
  align-items: center;
}

.navbar-element.stuck {
  max-width: 250px;
}

.navbar-element:hover {
  cursor: pointer;
  color: var(--hover-color);
  transition: 0.2s;
}

.dropdown {
  display: inline;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  padding: 5px 10px;
}

.dropdown-link:hover {
  background-color: var(--background-color);
  transition: 0.2s;

  color: var(--hover-color);
}

.dropdown .content {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: var(--background-color);
  position: absolute;
  min-width: 200px;
  font-size: 14px;
  box-shadow: 2px 2px 5px rgb(69, 69, 69);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.dropdown:hover .content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 1000px;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.section {
  height: fit-content;
  width: 100vw;

  margin-top: 5rem;
}

.section h1 {
  justify-self: center;
  color: rgb(123, 123, 236);

  font-size: 1.7rem;
  font-weight: 900;
}

#section-img {
  width: 100vw;
  height: 13rem;

  text-align: center;

  background-color: var(--background-color-2);
}
@media (max-width: 760px) {
  #section-img img{
    width: 400px;
  }
}
.div-section {
  height: 100%;
  width: 70%;

  margin: 0 auto;  
}

.xdiv-videos {
  height: 100%;
  width: 70%;

  margin: 0 auto;  

  display: flex;
  flex-wrap: wrap;

  justify-content: space-around;

  
}

.xdiv-videos iframe {
flex: 1 1 (300px);
height: auto;
max-width: 360px;


margin: 0.8rem;
border: 2px solid rgba(255, 255, 255, 0.2);
border-radius: 0.6rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


#xseccion2 {
  display: flex;
  flex-wrap: wrap;
}

#xseccion2 > p, #xseccion2 > h1, #xseccion2 > div {
  flex: 1;

  min-width: 50%;
  width: fit-content;
  height: fit-content;
}

#xseccion2 div {
  display: flex;
  flex-direction: column;

  margin-top: 0.5rem;
  min-width: 40vw;
}



#xseccion2  img {
  max-height: 350px;
  max-width: 350px;
  aspect-ratio: 1/1;

  flex: 1;
}

#seccion2 p {
  font-size: 1.1rem;
}


#div-mcm {
  flex: 1;

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  height: fit-content;
  width: 100%;
  min-width: 80vw;
}

#div-mcm img {
  width: 80%; /* Image takes full width of its parent container */
  height: auto; /* Height is automatically adjusted based on width */
  max-width: 800px; /* Optional: Set a max-width to ensure the image doesn't grow too large */
  aspect-ratio: 1.834;
  
  margin: 2rem auto;/* Ensures the correct aspect ratio */  
}

#div-mcm p {
  margin: 0 auto;
  max-width: 80%;

  font-size: 1.1rem;
}

#div-info {
  margin: 0 auto;
  display: flex;
  flex-direction: row !important;

  justify-content: space-around;

  width: fit-content;
  gap: 2rem;

  margin-top: 3rem !important;
}

#div-info a,button{
  flex: 1;
  max-width: fit-content;

  cursor: pointer;



  text-decoration: none;
  color: var(--text-color);
}

#div-info a:hover {
  color: rgb(123, 123, 236);
}

#div-info button {
  border-radius: 15px;
  padding: 0.4rem;

  background-color: var(--cta);
  border: none;


}

#div-info button:hover {
  transform: scale(1.04);
}

#div-info button a {
  color: black;

  text-decoration: none;
}

#div-info button a:hover {
  color: #000000;
}




.fade-0 {
  opacity: 0;
  transform: translateY(-100%);
  filter: blur(4px);
  transition: all 1.2s ease, background-color 0.7s ease-in-out, color 0.7s ease-in-out;

}
.fade-in{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}